<?php

namespace App\Models;

use App\Models\BaseModel;

class Role extends BaseModel
{

    protected $table = 'roles';

    protected $fillable = [
        'name',
        'code',
        'dataScope',
        'status',
        'sort',
        'menuIds',
    ];

    protected function casts(): array
    {
        return [
            'menuIds' => 'json',
        ];
    }
}
